You are here: Language Elements and Expressions > Numeric Expressions
A numeric expression is a combination of numeric elements (such as numbers, variables, and functions) and operators that evaluates to a numeric value.
An expression can contain any of the following in any combination:
The following mathematical operators are available:
Operator |
Meaning |
Example |
---|---|---|
+ |
A=B+C |
|
- |
A=B-C |
|
* |
A=B*C |
|
/ |
A=B/C |
|
Mod or @ |
A=B Mod C (assigns the remainder of B divided by C to A) |
|
** |
A=B**C (assigns the value of B raised to the C power) |
You can perform additional mathematical operations using math functions. For more information on operator precedence rules and expression nesting, see Operator Precedence.
Please note
In each of the examples above, if A is an integer number and B and C are both real numbers, the result will be truncated unless ROUND() is used (e.g., A = ROUND(B+C)).